package com.ruoyi.iot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.iot.domain.IotSensor;
import com.ruoyi.iot.enums.SensorTypeEnum;

/**
 * (IotSensor)表服务接口
 *
 * @author makejava
 * @since 2025-01-14 17:49:55
 */
public interface IotSensorService extends IService<IotSensor> {
    void updateDeviceOnlineStatus(String sensorId);

    void updateDeviceOfflineStatus(String sensorId);

    void updateSensorOnlineStatusBySensorType(SensorTypeEnum sensorType);

    void updateSensorOfflineStatusBySensorType(SensorTypeEnum sensorType);


    void updateSensorWarnStatus(String sensorId, String warningStatus, String lastWarningParam, String lastWarningContent);

    void updateSensorWarnStatus(SensorTypeEnum sensorType, String warningStatus, String lastWarningParam);
}

